# It is recommended to test the script on a local machine for its purpose and effects. # ManageEngine Desktop Central will not be responsible for any # damage/loss to the data/setup based on the behavior of the script. # Description - Script to turn off auto updates in App Store # Configuration Type - COMPUTER if [ $# == '0' ]; then softwareupdate --schedule off ret=$? if [ $ret == "0" ]; then echo "Auto updates are now turned off in the App Store" else echo "Error in executing the code" fi exit $ret else echo "Invalid Arguments - Please refer description of the script" exit 1 fi